function getProcessInfo() {  //监控运行程序的，如果摆在入口main.js内有监听的作用
    const memUsage = process.memoryUsage(); //结果要除1024/1024
    const cpuUsage =process.cpuUsage();
    const pwd =process.cwd();//工作目录
    const pid =process.pid;
    const pidtitle =process.title;
    const rel =process.release;
    const uptime =process.uptime();
    return{
        memUsage,
        cpuUsage,
        pwd,
        pidtitle,
        pid,
    }
}
console.log(getProcessInfo())

process.on('uncaughtException', function (err) {
    console.log('Caught exception: ' + err);
});